<template>
  <el-row :gutter="24">
    <el-col :span="6" class="mb20">
      <el-card shadow="never" class="overflow-card">
        <div slot="header" class="tl-center">
          <span>考评等级</span>
        </div>
        <ul>
          <li
            class="mb20"
            v-for="(item,index) in mdl.internalPlanLevels"
            :key="index"
          >{{ index + 1 + '.' }}{{item.internalLevelName}}</li>
        </ul>
      </el-card>
    </el-col>
    <el-col class="mb20" :span="6">
      <el-card shadow="never" class="overflow-card">
        <div slot="header" class="tl-center">
          <span>考评项目</span>
        </div>
        <ul>
          <li
            class="mb20"
            v-for="(item,index) in mdl.internalPlanItems"
            :key="index"
          >{{item.internalItemName}}</li>
        </ul>
      </el-card>
    </el-col>
    <el-col :span="6">
      <el-card shadow="never" class="overflow-card">
        <div slot="header" class="tl-center">
          <span>已完成</span>
        </div>
        <ul>
          <li
            class="mb20"
            v-for="(item,index) in mdl.taskFinish"
            :key="index"
          >{{ index + 1 + '.' }}{{item.name}}</li>
        </ul>
      </el-card>
    </el-col>
    <el-col :span="6">
      <el-card shadow="never" class="overflow-card">
        <div slot="header" class="tl-center">
          <span>未完成</span>
        </div>
        <ul>
          <li
            class="mb20"
            v-for="(item,index) in mdl.taskNotFinish"
            :key="index"
          >{{ index + 1 + '.' }}{{item.name}}</li>
        </ul>
      </el-card>
    </el-col>
  </el-row>
</template>

<script>
export default {
  data() {
    return {
      mdl: {}
    }
  },
  methods: {
    show(one) {
      this.mdl = one
    }
  }
}
</script>

<style scoped>
.height-300 {
  height: 240px;
  overflow-y: scroll;
}
</style>
